package configuringSeleniumAndRunTestOnAllBrowsers;

import org.openqa.selenium.firefox.FirefoxDriver;

public class BasicMethodsOfDriver {


    public static void main(String[] args) {
        FirefoxDriver driver = new FirefoxDriver();
        driver.get("https://google.com");
        System.out.println(driver.getTitle());
        System.out.println(driver.getCurrentUrl());
//        System.out.println(driver.getPageSource());
        driver.get("https://duckduckgo.com");
        System.out.println(driver.getTitle());
        driver.navigate().back();
        driver.close(); // close current open browser
        driver.quit(); // close all browsers open by selenium

    }


}
